<?php
require('init.php');
require(LIBWWWDIR . '/forms.php');
?>
<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 
<script type="text/javascript" src="../jquery-validation-1.9.0/lib/jquery.js" charset="utf-8"></script>
<script type="text/javascript" src="../jquery-validation-1.9.0/jquery.validate.js" charset="utf-8"></script>
<script type="text/javascript" src="../jquery-validation-1.9.0/jquery.validate.min.js" charset="utf-8"></script>
<script type="text/javascript" src="../jquery-validation-1.9.0/additional-methods.js" charset="utf-8"></script>
<script type="text/javascript">
	$(document).ready(function(){
	$("#form").validate({
		rules:{
			in1name :{ minlength: 4, lettersonly: true },
			in1ape:{ minlength: 4, lettersonly: true},
			texta: { required: true }
		}
	});
	
	});
		
	
	</script>
	<link rel="stylesheet" href="style.css" media="screen">
</head>
<body>
<div id="cabecera"> <h3>Solicitar cuenta de usuario Postmaratón</h3> </div>
<!--se le retornará por correo, el login y password de la cuenta-->
<div id="contenedor">
<?php
echo addForm('adduser.php','post','form');
?>
<!--<form id="form" action="adduser.php" method="post" accept-charset="UTF-8">-->
<!--<fieldset>-->
	<p>Ingrese sus datos:<p/>

	<table style="border: 1px solid #9f9f9f;" cellspacing="10">	
	<tr>
		<td>
			<label for="in1name">
			Nombre:
		</td>
		<td>
			<input id="in1name" type="text" name="in1name" class="required"/><br>
		</td>
	</tr>
	<tr>
		<td>
			<label for="in1ape">	
			Apellido:
		</td>
		<td>
			<input id="in1ape" type="text" name="in1ape" class="required"/><br>
		</td>
	</tr>

	<tr>
		<td>
			<label for="email:">
			Email:
		</td>
		<td>
			<input id="in1ema" type="text" name="in1ema" class="required email"/><br><br>
		</td>
</tr>
		<td>
			<label for="texta">
		</td>
		<td>
			<textarea name="texta" rows="10" cols="10" id="texta"></textarea>
		</td>
</tr>
	</tr>
		<td>
			<label for="sub">
		</td>
		<td>
			<button id="submit" value="Submit" onClick="form.submit()" > Submit</button>
		</td>
	</tr>


	
	<!--Cedula:<input id="in1ced" type="text" name="in1ced" class="required"/>-->
<!--</fieldset>-->
<!--</form>-->
<?php
echo addEndForm();
?>
</div>
</body>
</html>
